package cug.xxs.jpa.domain;

import java.io.Serializable;
import java.util.UUID;

import javax.persistence.*;
import lombok.Data;


@Entity
@Table(name = "tb_layer")
@Data
public class Layer implements Serializable {

	@Id
	private String id = UUID.randomUUID().toString();

	@Column(name = "layer_code")
	private String code;

	@Column(name = "layer_name")
	private String name;

	@Column(name = "layer_description")
	private String description;

	@ManyToOne
	private Model model;

}
